import { request } from "umi"
import { Iusers } from '@/utils/teacherPersonCenter'


export const profileCenter = () =>{
    return request('/system/user/profile', {
        method: 'GET', 
    })
}
export const profile = (data:Iusers) =>{
    return request('/system/user/profile', {
        method: 'PUT', 
        data
    })
}
export const UpImg = ( data : any) =>{ 
    return request( '/system/user/profile/avatar', {
    method :'POST',
    data
 })
}

export const updatePwd = (params:any) =>{
    return request('/system/user/profile/updatePwd', {
        method: 'PUT', 
        params
    })
}